/************************************************************************************
**                                                                                 **
**                               mcHF QRP Transceiver                              **
**                             K Atanassov - M0NKA 2014                            **
**                                                                                 **
**---------------------------------------------------------------------------------**
**                                                                                 **
**  File name:                                                                     **
**  Description:                                                                   **
**  Last Modified:                                                                 **
**  Licence:		For radio amateurs experimentation, non-commercial use only!   **
************************************************************************************/

#ifndef __IQ_RX_FILTER_AM_2k3_H
#define __IQ_RX_FILTER_AM_2k3_H

#define Q_BLOCK_SIZE		1
#define Q_NUM_TAPS			89

/*
 	 * 89 tap FIR lowpass filter for AM demodulation
     * "2.3 kHz lowpass"
     *
     * NOTE:  Because the actual bandpass is TWICE the lowpass, and the fact that one must off-
     * tune the receiver slightly to avoid the "zero-Hz" hole in the center of the passband,
     * this filter is somewhat narrower than "2.3 kHz"
     *
     * Fc = 1.78 kHz
     *
     * -6dB @ 1.99 kHz
     * -20dB @ 2.55 kHz
     * -40dB @ 2.90 kHz
     * -60dB > 3.09 kHz
     *
     * 20141205 by KA7OEI using Iowa Hills Hilbert Filter Designer
*/

const float iq_rx_am_2k3_coeffs[Q_NUM_TAPS] =
{
		-0.000196778133038791,
		-0.000275755280074211,
		-0.000353984612861587,
		-0.000418690075048854,
		-0.000454047164276299,
		-0.000442413394049822,
		-0.000366184434389176,
		-0.000210191425343778,
		 0.000035537284709122,
		 0.000372915408768254,
		 0.000793177355713582,
		 0.001274879514193310,
		 0.001782913716894173,
		 0.002268882448091475,
		 0.002673096205319169,
		 0.002928317701073665,
		 0.002965203927037432,
		 0.002719199905849284,
		 0.002138436401413266,
		 0.001192000201349910,
		-0.000122197108217858,
		-0.001770806410417120,
		-0.003680540305986990,
		-0.005736552692955240,
		-0.007784289231932950,
		-0.009635139756152750,
		-0.011075900709763000,
		-0.011881696038148500,
		-0.011831641788347900,
		-0.010726209478865100,
		-0.008404982146732770,
		-0.004763336656982600,
		 0.000233449848468894,
		 0.006540069844680653,
		 0.014026193505423940,
		 0.022477415356206891,
		 0.031602482869331178,
		 0.041046636023995359,
		 0.050410360909975617,
		 0.059272371807803176,
		 0.067215232024002855,
		 0.073851744736956312,
		 0.078850120995801118,
		 0.081955978437540142,
		 0.083009440825973363,
		 0.081955978437540142,
		 0.078850120995801118,
		 0.073851744736956312,
		 0.067215232024002855,
		 0.059272371807803176,
		 0.050410360909975617,
		 0.041046636023995359,
		 0.031602482869331178,
		 0.022477415356206891,
		 0.014026193505423940,
		 0.006540069844680653,
		 0.000233449848468894,
		-0.004763336656982600,
		-0.008404982146732770,
		-0.010726209478865100,
		-0.011831641788347900,
		-0.011881696038148500,
		-0.011075900709763000,
		-0.009635139756152750,
		-0.007784289231932950,
		-0.005736552692955240,
		-0.003680540305986990,
		-0.001770806410417120,
		-0.000122197108217858,
		 0.001192000201349910,
		 0.002138436401413266,
		 0.002719199905849284,
		 0.002965203927037432,
		 0.002928317701073665,
		 0.002673096205319169,
		 0.002268882448091475,
		 0.001782913716894173,
		 0.001274879514193310,
		 0.000793177355713582,
		 0.000372915408768254,
		 0.000035537284709122,
		-0.000210191425343778,
		-0.000366184434389176,
		-0.000442413394049822,
		-0.000454047164276299,
		-0.000418690075048854,
		-0.000353984612861587,
		-0.000275755280074211,
		-0.000196778133038791
};

#endif
